<?php
/**
 * @package		Joomla.Site
 * @subpackage	mod_articles_category
 * @copyright	Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
?>



<?php if ($module->showtitle) { ?>
<h3 class="port-title"><?php echo $module->title ?></h3>
<?php } ?>


<div id="home_portfolio_13826044671150883462" class="portfolio2_wrapper">
	<ul class="slides">
		
		<?php foreach ($list as $key => $item) : ?>
		<?php
			$images = json_decode($item->images);
			$metadata = json_decode($item->metadata);
			//var_dump($item);
		?>
		<?php if($key%4 == 0) echo "<li>"; ?>
			<div class="one_fourth">
			<div id="portfolio_img_<?php echo $item->id ?>" class="portfolio200_shadow" data-rel="portfolio_desc_<?php echo $item->id ?>">
				<a href="<?php echo $item->link; ?>">
					<img width="220" height="160" src="<?php echo $images->image_intro ?>" alt="" class="portfolio_img"/>
					<div class="portfolio200_overlay">
						<div class="overlay_icon_circle">
							<img src="<?php echo JURI::base() ?>/templates/trista/images/icon_link.png" alt="" class=""/>
						</div>
					</div>
				</a>
			</div>
			
					
			<div id="portfolio_desc_<?php echo $item->id ?>" data-rel="portfolio_img_<?php echo $item->id ?>" class="portfolio_desc portfolio_desc_200">
				<h6 class="portfolio_header"><?php echo $item->title; ?></h6>
				<?php echo $metadata->author ?>
			</div>
			</div>
		<?php if($key%4 == 3 || $key == count($list)-1) echo "</li>"; ?>
	<?php endforeach; ?>
		
		
			</ul>
</div>


	

	

